import {defineStore} from "pinia";
import {computed, reactive, type Ref, ref} from "vue";
const useMenuStates = defineStore('menuStates', () => {
    //是否折叠
    const collapsed: Ref<boolean> = ref(false)
    //模式
    const mode: string = 'inline'
    const toggleMenu = () => {
        collapsed.value = !collapsed.value
    }
    const state = reactive({
        selectedKeys: ['1'],
        openKeys: ['1'],
    })

    const navTitleName = ref('首页')
    return {collapsed,mode, toggleMenu,state, navTitleName}
})

const useMenu = defineStore('menu', () => {
    const menuList = ref([])

    const getMenuList = () => {

    }

    return {menuList}
})

export {useMenuStates}